module.exports = (sequelize, Sequelize) => {
    const Course = sequelize.define("course",
        {
            course_name: {
                type: Sequelize.STRING
            },
            course_url: {
              type: Sequelize.STRING  
            },
            course_id: {
                type: Sequelize.INTEGER
            },
            course_description: {
                type: Sequelize.STRING 
            },
            tech_id: {
                type: Sequelize.INTEGER
            },
            course_type: {
                type: Sequelize.STRING 
            }
        }, {
        indexes: [{
            unique: false,
            fields: ['course_name']
        },{
            unique: false,
            fields: ['tech_id']
        }]
    }, {
        freezeTableName: true,
        timestamps: false,
    });

    Course.removeAttribute('id');
    Course.removeAttribute('createdAt');
    Course.removeAttribute('updatedAt');
    return Course
}